﻿// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>Vecen.BangChuang</Solution>
// <Project>Vecen.BangChuang.Core</Project>
// <FileName>Attachment.cs</FileName>
// <CreateTime>2017-05-05 0:07</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-05-05 0:07" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System;
using Abp.Domain.Entities.Auditing;

namespace Vecen.BangChuang.BangChuang.Common {
    public class Attachment: FullAuditedEntity {

        /// <summary>
        /// 业务对象ID
        /// </summary>
        public long? ObjectId { get; set; }

        /// <summary>
        /// 业务对象类型
        /// </summary>
        public string AssociateType { get; set; }

        /// <summary>
        /// 上传文件名
        /// </summary>
        public string FriendlyFileName { get; set; }

        /// <summary>
        /// 文件类型
        /// </summary>
        public string ContentType { get; set; }

        /// <summary>
        /// 存储文件名
        /// </summary>
        public Guid FileName { get; set; }

        /// <summary>
        /// 远程地址
        /// </summary>
        public string RemoteUrl { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public long FileLength { get; set; }

        /// <summary>
        /// 图片高度
        /// </summary>
        public int? Height { get; set; }

        /// <summary>
        /// 图片宽度
        /// </summary>
        public int? Width { get; set; }
    }
}